package com.blqy.fr.model.user;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.blqy.fr.model.base.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 权限实体类
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Schema(description = "Permission")
@TableName("permission")
public class Permission extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @Schema(description = "父权限ID")
    @TableField("parent_id")
    private Long parentId;

    @Schema(description = "权限名称")
    @TableField("name")
    private String name;

    @Schema(description = "权限编码")
    @TableField("code")
    private String code;

    @Schema(description = "状态：0-禁用 1-启用")
    @TableField("status")
    private Integer status;
}